package com.fruits;

public class Strawberry extends Fruits {

    final int single_price=13;


    final double dis_price=13*0.8;


    @Override
    public double totalMoney(int num) {
        if (num>=0){
            return single_price*num;
        }else {
            return 0;
        }
    }

    @Override
    public double dis_totalMoney(int num) {
        if (num>=0){
            return dis_price*num;
        }else {
            return 0;
        }
    }
}
